﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Main
{

    public enum CellType
    {
        Floor,Wall
    }

    public class CellFactory
    {
        public Cell MakeCell(CellType type)
        {
            Cell result = new Cell();

            switch (type)
            {
                case CellType.Floor:
                    result.Name = "Floor";
                    result.Description = "A simple floor";
                    result.Blocks = false;
                    result.BackgroundColor = ConsoleColor.Black;
                    result.ForegroundColor = ConsoleColor.White;
                    result.Character = ".";
                    result.Changed = true;                    
                    break;

                case CellType.Wall:
                    result.Name = "Wall";
                    result.Description = "A wall";
                    result.Blocks = true;
                    result.BackgroundColor = ConsoleColor.Black;
                    result.ForegroundColor = ConsoleColor.White;
                    result.Character = "#";
                    result.Changed = true;
                    break;

            }

            return result;
        }
    }
}
